/**
 * Witontek.com.
 * Copyright (c) 2012-2017 All Rights Reserved.
 */
package test.thinkinjava.init2;

/**
 * 
 * @author Long
 * @version $Id: Dervied.java, v 0.1 2017年1月22日 下午4:20:42  xiaolong.ma  Exp $
 */
public class Dervied extends Base {
    private String name = "dervied";

    public Dervied() {
        tellName();
        printName();
    }

    public void tellName() {
        System.out.println("Dervied tell name: " + name);
    }

    public void printName() {
        System.out.println("Dervied print name: " + name);
    }

    public static void main(String[] args) {

        Base b = new Dervied();
        b.printName();
    }
}
